package com.lcc.lynx.common.converter;

import cn.hutool.core.date.DateUtil;
import org.springframework.core.convert.converter.Converter;
import java.util.Date;

/**
 * 字符串转日期转换器
 * @author lcc
 * @date 2025/2/28 13:56
 */
public class StringToDateConverter implements Converter<String, Date>{

    @Override
    public Date convert(String source) {
        return DateUtil.parse(source);
    }
}
